//
//  ImgTableViewCell.m
//  homeworkForYC
//
//  Created by 苗钧豪 on 16/7/27.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "ImgTableViewCell.h"

@implementation ImgTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _imgview = [[UIImageView alloc]initWithFrame:CGRectZero];
        [self.contentView addSubview:_imgview];
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _imgview.frame = CGRectMake(20, 20, self.frame.size.width, 50);
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
